$(function(){

    $('body').on('click','#learn',function(){
        var url ="/mobile/course/info?courseId="+byCourseId+"&catalogId="+catalogId;
        if(courseId!=byCourseId){
            url+="&packageCourseId="+courseId;
        }
      window.location.href=baseloaction +url;
    });

    var cardList = $(".exam-option-bx");
    $.each(cardList,function (index,em) {
        var status = $(em).data('status');
        var scoreState = $(em).data('state');
        if(status==2){
            if(scoreState==1){
                $(em).addClass('exam-option-correct');
            }else if(scoreState==2){
                $(em).addClass('b-halfRight');
            }else if(scoreState==3){
                $(em).addClass('exam-option-error');
            }
        }
    });
});

